package com.imooc.service;

import com.imooc.pojo.Users;
import com.imooc.pojo.bo.UserBo;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: 逸尘风清
 * @Date: 2021/5/6
 * @Time: 22:08
 * 描述：
 */
public interface UserService {
    public boolean queryUsernameIsExist(String username);

    @Transactional(propagation = Propagation.REQUIRED)
    Users createUser(UserBo userBo);

    Users queryUserForLogin(String username, String password);
}
